package person01;

public class Dog extends person {
  private   String color ;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Dog(String color) {
        this.color = color;
    }

    public Dog(String name, int age, String color) {
        super(name, age);
        this.color = color;
    }

    public void stat() {

        System.out.println("狗看家");
        super.stat();
    }
}
